public class Test {
    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addFirst(1);
        myLinkedList.addFirst(2);
        myLinkedList.addFirst(3);
        myLinkedList.addFirst(4);
        System.out.println(myLinkedList.size());
        System.out.println(myLinkedList.contains(10));
        myLinkedList.dispay();
        myLinkedList.addLast(27);
        myLinkedList.dispay();
        myLinkedList.addIndex(2,16);
        myLinkedList.dispay();
        myLinkedList.addIndex(5,16);
        myLinkedList.dispay();
        System.out.println("----------");
        myLinkedList.remove(27);
        myLinkedList.dispay();
        myLinkedList.remove(4);
        myLinkedList.dispay();
        System.out.println("=====删除多个6======");
        myLinkedList.addIndex(2,6);
        myLinkedList.addIndex(5,6);
        myLinkedList.addLast(6);
        myLinkedList.dispay();
        myLinkedList.removeAllKey(6);
        myLinkedList.dispay();




    }
}
